package com.xuchaotong.service;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class UserServiceInvocationHandler implements InvocationHandler{
    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {

        System.out.println("我是代理...");
        System.out.println(method.getName());
        System.out.println(method.getDeclaringClass());
        System.out.println(Object.class.equals(method.getDeclaringClass()));
        return null;
    }
}
